let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    });
                var n = t('UIPanel'),
                    i = (function() {
                        function t() {}
                        return (
                            (t.getComponent = function(e, o, n) {
                                if ((void 0 === n && (n = null), o)) {
                                    if (null == n) return o.getComponent(e);
                                    var i = t.getNode(o, n);
                                    if (i) return i.getComponent(e);
                                }
                                return null;
                            }),
                            (t.getAllComponents = function(t, e) {
                                var o = [];
                                if (e)
                                    for (
                                        var n = [e], i = void 0, r = 0, a = void 0; r < n.length;

                                    ) {
                                        (a = (i = n[r]).getComponent(t)) && o.push(a),
                                            i.children.length > 0 && (n = n.concat(i.children)),
                                            r++;
                                    }
                                return o;
                            }),
                            (t.getNode = function(t, e) {
                                if ((void 0 === e && (e = null), t && e)) {
                                    for (
                                        var o = e.split('/'), n = t, i = 0; i < o.length && null != n; i++
                                    ) {
                                        n = n.getChildByName(o[i]);
                                    }
                                    return n;
                                }
                                return null;
                            }),
                            (t.getUIPanel = function(t) {
                                for (
                                    var e, o = t.getComponents(cc.Component), i = 0; i < o.length; i++
                                ) {
                                    if ((e = o[i]) && e instanceof n.default) return e;
                                }
                                return null;
                            }),
                            (t.getNodeList = function(e) {
                                for (var o = [e], n = e.children, i = 0; i < n.length; i++) {
                                    var r = t.getNodeList(n[i]);
                                    o = o.concat(r);
                                }
                                return o;
                            }),
                            (t.findNode = function(t, e) {
                                for (var o, n = [e], i = 0; i < n.length;) {
                                    if ((o = n[i]).name == t) return o;
                                    (n = n.concat(o.children)), i++;
                                }
                                return null;
                            }),
                            (t.findNodes = function(e, o) {
                                for (
                                    var n = t.getNodeList(o), i = [], r = 0; r < n.length; r++
                                ) {
                                    (o = n[r]), (void 0).name == e && i.push(void 0);
                                }
                                return i;
                            }),
                            (t.findNodeByUUID = function(e, o) {
                                for (var n, i = t.getNodeList(o), r = 0; r < i.length; r++) {
                                    if ((n = i[r]).uuid == e) return n;
                                }
                                return null;
                            }),
                            (t.checkNodeInContent = function(e, o, n) {
                                if ((void 0 === n && (n = !1), e.parent))
                                    for (
                                        var i = t.getBoundingBoxToWorld(e),
                                            r = void 0,
                                            a = void 0,
                                            s = 0; s < o.length; s++
                                    ) {
                                        (a = o[s]),
                                        (r = t.getBoundingBoxToWorld(a, n)),
                                        i.intersects(r) || i.containsRect(r) ?
                                            (a.active = !0) :
                                            (a.active = !1);
                                    }
                            }),
                            (t.getBoundingBoxToWorld = function(t, e) {
                                if ((void 0 === e && (e = !1), e))
                                    return t.getBoundingBoxToWorld();
                                var o = t.getBoundingBox(),
                                    n = cc.v2(o.x, o.y);
                                return (
                                    (n = t.parent.convertToWorldSpaceAR(n)),
                                    (o.x = n.x),
                                    (o.y = n.y),
                                    o
                                );
                            }),
                            (t.hitTest = function(t, e) {
                                return t.getBoundingBoxToWorld().contains(e);
                            }),
                            (t.setSwallowTouches = function(t, e) {
                                t._touchListener && t._touchListener.setSwallowTouches(e);
                            }),
                            (t.setGray = function(e, o, n) {
                                void 0 === o && (o = !0), void 0 === n && (n = !0);
                                for (
                                    var i = n ? t.getNodeList(e) : [e], r = 0; r < i.length; r++
                                ) {
                                    var a = i[r].getComponent(cc.RenderComponent);
                                    !a ||
                                        a.node.isGray == o ||
                                        a instanceof sp.Skeleton ||
                                        (o ?
                                            a.setMaterial(
                                                0,
                                                cc.Material.getBuiltinMaterial('2d-gray-sprite')
                                            ) :
                                            a.setMaterial(
                                                0,
                                                cc.Material.getBuiltinMaterial('2d-sprite')
                                            ),
                                            (a.node.isGray = o));
                                }
                            }),
                            (t.setColor = function(e, o) {
                                for (var n = t.getNodeList(e), i = 0; i < n.length; i++) {
                                    n[i].color = o;
                                }
                            }),
                            (t.setButtonEnable = function(e, o) {
                                for (
                                    var n = t.getAllComponents(cc.Button, e), i = 0; i < n.length; i++
                                ) {
                                    n[i].interactable = o;
                                }
                            }),
                            t
                        );
                    })();
                (o.default = i), console.log("end");
            module.exports =  e.exports;